package cn.ilikes.apps.collect.pojos;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn;
import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn.Index;
import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn.Store;

@Entity
@Table(name = "ilikes_my_collects", schema = "ilikes_collect")
public class IlikesMyCollects {

	@Id
	@IndexColumn(index = Index.not_analyzed, name = "id", store = Store.no)
	private String uuid;

	@Column(name = "collects@title")
	@IndexColumn(index = Index.analyzed, name = "title", store = Store.no)
	private String title;

	@Column(name = "collects@content")
	@IndexColumn(index = Index.analyzed, name = "content", store = Store.no)
	private String content;

	@ManyToOne
	@JoinColumn(name = "myfolder@likesmyfolderid")
	private IlikesMyfolder likesMyfolder;

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public IlikesMyfolder getLikesMyfolder() {
		return likesMyfolder;
	}

	public void setLikesMyfolder(IlikesMyfolder likesMyfolder) {
		this.likesMyfolder = likesMyfolder;
	}

}
